<template>
	<view>
		<view class="" v-for="(item, index) in list" :key="index">
			<u-cell :isLink="true" :border="true" @click="navigateTo(`/pages/work/tempStorage/tempDetail?orderCode=${item.orderCode}`)">
				<view slot="title" class="notice-record-title"><text>入库单</text>[{{item.orderCode}}]</view>
				<view slot="label" class="notice-record-desc">
					<u-line length="106%"></u-line>
					<view style="display: flex;justify-content: space-between;margin: 10rpx 0;">
						<view>2024-11-05 10:00</view>
						<view>进行中</view>
					</view>
				</view>
			</u-cell>
			<u-gap height="10" bgColor="#ebebeb"></u-gap>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{
						orderCode: 'XXXXX1'
					},
					{
						orderCode: 'XXXXX2'
					},
					{
						orderCode: 'XXXXX3'
					}
				]
			};
		},
		methods: {
			navigateTo(url) {
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
/deep/.u-cell__body {
	padding: 12rpx !important;
	align-items: start;
}
	
.notice-record-title {
	margin: 10px 0;
}
.notice-record {
  display: flex;
  padding: 0;

  &-content {
    margin-left: 8px;
  }

  &-title {
    font-size: 28rpx;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  &-title .read {
    color: #ccc;
  }

  &-desc {
    padding: 4px 0;
    font-size: 12px;
    color: #909399;
    // display: flex;
  }
}
</style>
